'use strict';

import React from 'react';
import { Overlay } from 'qnui';
import './index.scss';

class LoadingDialog extends React.Component {
	constructor(props, context) {
        super(props, context);
        this.state = {
            visible: true
        };
    }
	onClose(){
		this.setState({
			visible:false
		});  
	}
  render() {	
    return (
		<Overlay visible={this.state.visible}
				hasMask
				align="cc cc"
				onRequestClose={this.onClose.bind(this)}>
			<span className="overlay-demo">
				Hello World From Overlay!
			</span>
		</Overlay>
    );
  }
}

export default LoadingDialog;
